package com.ycky.batchProcess;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class BatchProcessContext {
    // 总记录数
    private final int total;
    // 当前处理速度
    private double currentSpeed;

    public BatchProcessContext(int total) {
        this.total = total;
        this.currentSpeed = 0;
    }
}